package com.yydream.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

 /**
 * 菜单表;
 * @author : yydream
 * @date : 2024-6-20
 */
@ApiModel(value = "菜单表",description = "")
@TableName("sys_menu")
@Data
public class SysMenuEntity extends TenantBaseEntity{
     /** 菜单id */
     @ApiModelProperty(name = "菜单id",notes = "")
     @TableId
     private Long id ;
     /** 菜单pid */
     @ApiModelProperty(name = "菜单父级id",notes = "")
     private Long pid ;
    /** 菜单名称 */
    @ApiModelProperty(name = "菜单名称",notes = "")
    private String name ;
    /** 菜单编码 */
    @ApiModelProperty(name = "菜单编码",notes = "")
    private String code ;
    /** 菜单地址 */
    @ApiModelProperty(name = "菜单地址",notes = "")
    private String path ;
    /** 菜单图标 */
    @ApiModelProperty(name = "菜单图标",notes = "")
    private String icon ;
    /** 权限码 */
    @ApiModelProperty(name = "权限码",notes = "")
    private String permission ;

     @ApiModelProperty(name = "组件地址",notes = "")
     private String component ;

     @ApiModelProperty(name = "动态路由添加层级",notes = " (默认值为layer，应附加“Route”的父路由记录，这里对应的是父级路由的code)")
     private String routerViewName ;

     @ApiModelProperty(name = "是否显示到顶部菜单",notes = "（1: 显示，2：不显示）")
     private Integer isShow ;

     @ApiModelProperty(name = "开启缓存",notes = "（1：开启，2：关闭）")
     private Integer keepAlive ;
     /** 菜单状态;（1：启动，2：禁用） */
     @ApiModelProperty(name = "菜单状态",notes = "（1：启动，2：禁用）")
     private Integer state ;
     /** 菜单状态;（1：启动，2：禁用） */
     @ApiModelProperty(name = "排序",notes = "")
     private Integer sort ;

}